package com.hp.his.charts.xml;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

/** Each <dataset> element contains a series of data. */
public class DataSet {

	/**
	 * Lets you specify the series name for a particular data-set. For example,
	 * if you're plotting a chart to indicate monthly sales analysis for 2005
	 * and 2006, the seriesName for the first dataset would be 2005 and that of
	 * the second would be 2006. The seriesName of a data-set is shown in
	 * legend.
	 */
	private String seriesName;
	
	/**
	 * This attribute defines what the particular data-set will be plotted as.
	 * Valid values are COLUMN, AREA or LINE.
	 */
	private String renderAs;
	
	private List<Set> sets;
	
	public DataSet() {

	}
	
	public DataSet(String seriesName) {
		this.seriesName = seriesName;
	}
	
	@XmlAttribute
	public String getSeriesName() {
		return seriesName;
	}

	public void setSeriesName(String seriesName) {
		this.seriesName = seriesName;
	}

	@XmlAttribute
	public String getRenderAs() {
		return renderAs;
	}

	public void setRenderAs(String renderAs) {
		this.renderAs = renderAs;
	}

	@XmlElement(name = "set")
	public List<Set> getSets() {
		return sets;
	}

	public void setSets(List<Set> sets) {
		this.sets = sets;
	}
	
}
